Skip to content

✨ 誕生日カレンダー機能を追加 - #236

Open
Tivo0921 wants to merge 4 commits into
mainfrom
feature/birthday-calendar
Open

✨ 誕生日カレンダー機能を追加#236
Tivo0921 wants to merge 4 commits into
mainfrom
feature/birthday-calendar

Conversation

@Tivo0921

@Tivo0921 Tivo0921 commented May 2, 2026

Copy link
Copy Markdown
Contributor

Closes #193

Summary

  • /internal/birthdays に誕生日カレンダーページを追加(月別リスト + 今月ハイライト)
  • 今日が誕生日のメンバーがいる場合、内部ページ上部に紙吹雪付きバナーを表示
  • 自分の誕生日までのカウントダウンを表示
  • 今日が誕生日のメンバーへ Geek ジョーク Discord DM を送るボタン(4種類)
  • 年間カレンダー(月単位・矢印ナビ):誕生日のある日を強調表示、クリックでポップアップ
  • 毎朝 9 時に Discord 運営チャンネルへ誕生日通知を送る Cron エンドポイント追加(/api/cron/birthday

Changes

  • app/internal/(protected)/birthdays/page.tsx — 誕生日一覧ページ(Server Component)
  • components/birthday-list.tsx — 月別リスト・カウントダウン・ジョークボタン(Client Component)
  • components/birthday-year-calendar.tsx — 年間カレンダー(月単位ナビ・ダイアログ)
  • components/today-birthday-banner.tsx — 今日の誕生日バナー(canvas-confetti)
  • lib/birthday/actions.tssendBirthdayJokeDm Server Action
  • app/api/cron/birthday/route.ts — Cron エンドポイント(CRON_SECRET で保護)
  • lib/discord-dm.tsbuildBirthdayNotification 追加
  • components/app-sidebar.tsx — サイドバーに「誕生日」ナビ項目を追加
  • .env.exampleCRON_SECRET を追加

Test plan

  • /internal/birthdays にアクセスして誕生日一覧が表示される
  • 月別グループが今月から始まっている
  • 今日が誕生日のメンバーがいる場合、黄色ハイライト + ジョークボタンが表示される
  • ジョークボタンを押すと Discord DM が送信され、トースト通知が出る
  • 年間カレンダーで矢印を押すと月が変わる
  • 誕生日のある日をクリックするとポップアップが表示される
  • Cloud Run に CRON_SECRET を設定し、Cloud Scheduler で /api/cron/birthday を毎朝 9:00 JST に呼び出す

🤖 Generated with Claude Code

- /internal/birthdays に誕生日カレンダーページを追加
- サイドバーに「誕生日」ナビリンク(Cake アイコン)を追加
- internal ホームに今日の誕生日バナー+紙吹雪アニメーション(canvas-confetti)
- 自分の誕生日までのカウントダウン表示
- 今日が誕生日のメンバーへ geek ジョークを Discord DM で送信する機能
- 月ナビ付き年間カレンダー(1ヶ月表示・前後矢印で移動)
- 誕生日がある日をクリックするとメンバー情報をポップアップ表示
- /api/cron/birthday エンドポイントで朝に Discord 運営チャンネルへ通知

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Tivo0921
Tivo0921 requested a review from Shion1305 May 2, 2026 12:16
@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown

Deployed on https://dev-pr-236-birbz3fm6q-an.a.run.app

@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown

Deployed on https://dev-pr-236-birbz3fm6q-an.a.run.app

@Tivo0921

Copy link
Copy Markdown
Contributor Author

@Shion1305 これでよければマージしてくれ

@Shion1305 Shion1305 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ひとまず
@Tivo0921 今日の午前話しましょ

Comment thread components/birthday-list.tsx Outdated
Comment on lines +37 to +56
{
label: "age++",
message:
"age++ を実行しました。コンパイルエラー: 0件。テスト: all passed。",
},
{
label: "git tag",
message:
"git tag -a birthday-$(date +%Y) -m 'Happy Birthday! No breaking changes detected in this release.'",
},
{
label: "console.log",
message:
'console.log("Happy Birthday! Stack usage: optimal. Memory leaks: none. Uptime: 1 year+.");',
},
{
label: "deploy",
message:
"本番環境へのデプロイが完了しました。ロールバック: 不要。ステータス: healthy。今年もよろしくお願いします。",
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jokeとして言いたいことは分からんくもないがなんかニッチすぎるというか伝わらないというか親しみ持たせたくはある

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

じゃああんたが作ってみろよ!

Comment thread components/birthday-list.tsx Outdated
return (
<div className="mt-3">
<p className="text-xs text-muted-foreground mb-2">
Discord DM でジョークを送る

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

誕生日祝いにDMでジョーク送らなくても笑笑
機能要件設計再考したいかも

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

じゃああんたが作ってみろよ!

Discord DMでジョークを送る機能(JokeButtons)とそのServer Action(sendBirthdayJokeDm)を削除

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Deployed on https://dev-pr-236-birbz3fm6q-an.a.run.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] 誕生日カレンダーの作成

2 participants